package com.pennywise.model.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 交易记录Excel导出模型
 */
@Data
public class TransactionExcel {
    
    @ExcelProperty("交易时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime transactionTime;
    
    @ExcelProperty("类型")
    private String type;
    
    @ExcelProperty("分类")
    private String category;
    
    @ExcelProperty("金额")
    private BigDecimal amount;
    
    @ExcelProperty("描述")
    private String description;
} 